from django.db import models
from django.contrib.auth.models import AbstractUser


# Create your models here.
class User(AbstractUser):
    mobile = models.CharField(max_length=15, verbose_name='手机号')
    avatar = models.ImageField(upload_to='avater', verbose_name='用户头像', null=True, blank=True)
    wechat = models.CharField(max_length=60, null=True, blank=True)

    class Meta:
        db_table = 'lf_users'
        verbose_name = '用户'
        verbose_name_plural = verbose_name
